/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'
import i18n from '@/lang/index'

const couponRouter = {
  path: '/adminh5/couponmanage',
  component: Layout,
  redirect: '/adminh5/couponmanage/coupon/list',
  name: 'Coupon',
  alwaysShow: true,
  meta: {
    title: i18n.t('Coupon'),
    icon: 'money'
  },
  children: [
    {
      path: 'coupon',
      component: () => import('@/views/adminh5/couponmanage/coupon/list'),
      name: 'CouponList',
      meta: { title: i18n.t('Coupon'), icon: 'list' }
    }
    // ,
    // {
    //   path: 'couponcode',
    //   component: () => import('@/views/adminh5/couponmanage/couponcode/list'),
    //   name: 'CouponCodeList',
    //   meta: { title: i18n.t('CouponCode'), icon: 'list' }
    // },
    // {
    //   path: 'usercoupon',
    //   component: () => import('@/views/adminh5/couponmanage/usercoupon/list'),
    //   name: 'UserCouponList',
    //   meta: { title: i18n.t('UserCoupon'), icon: 'list' }
    // },
    // {
    //   path: 'coupontype',
    //   component: () => import('@/views/adminh5/couponmanage/coupontype/list'),
    //   name: 'CouponTypeList',
    //   meta: { title: i18n.t('CouponType'), icon: 'list' }
    // }
  ]
}
export default couponRouter
